﻿// ChaosKitInterface code
// See http://ChaosKitInterface.codeplex.com for license and usage terms.
// Author: Scientio LLC. http://www.scientio.com
//
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Windows.Threading; // DispatcherUnhandledExceptionEventArgs

namespace ChaosKitInterface
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {

        void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
        {
            // Process unhandled exception
            MessageBox.Show("Error in ChaosKit Interface: " + e.Exception.Message, "Error", MessageBoxButton.OK);
            // Prevent default unhandled exception processing
            e.Handled = true;
        }

        
    }

}
